home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Headers / gamekit / SoundPlayer.h < prev    next >
Text File  |  1995-06-12  |  675b  |  32 lines

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. #define GK_DEFNUMSOUNDS 1
  5. #define GK_DEFNUMTYPES 1
  6.  
  7. @interface SoundPlayer:Object
  8. {
  9.     id  soundListList, streamGroup, device;
  10.     id currentTime, startTime;
  11.     id preferences;
  12.     id gameScreen;
  13.     int soundType, numTypes, numSounds;
  14.     BOOL _initialized, turnedOn;
  15. }
  16.  
  17. - init;
  18. - initSounds:(int)ns types:(int)nt streams:(int)nstr;
  19. - appDidInit:sender;    // forwarded by GameBrain
  20. - loadSounds;
  21. - shutUpUntil:aTime;
  22. - turnOn:(BOOL)flag;
  23. - play:sender; // uses sender's tag to get sound # to play
  24. - playNum:(int)num;
  25. - setSoundType:(int)num;
  26. - (int)soundType;
  27. - soundNum:(int)num type:(int)type;  // returns the appropriate GKSound
  28. - freeObjects;
  29. - free;
  30.  
  31. @end
  32.